package controllers

import (
	"github.com/astaxie/beego"
	"beego/testApp/common"
	//"fmt"
	//"beego/testApp/common"

)

type IndexController struct {
	beego.Controller
}

func (c *IndexController) Get() {

    
	menuobj := &common.Menu{} 
	menulist := menuobj.GetMenuList() 
	
	c.Data["mlist"] = menulist
	c.Data["username"] = c.GetSession("username");
	
	c.TplName = "admin.tpl"

	
}
